<!doctype html>
 <html lang="zh-CN">
 <head>
   <meta charset="UTF-8">
   <link rel="stylesheet" href="../view/admin/css/common.css">
   <link rel="stylesheet" href="../view/admin/css/main.css">
   <script type="text/javascript" src="../view/admin/js/jquery.min.js"></script>
   <script type="text/javascript" src="../view/admin/js/colResizable-1.3.min.js"></script>
   <script type="text/javascript" src="../view/admin/js/common.js"></script>
   
   <script type="text/javascript">
      $(function(){  
        $(".list_table").colResizable({
          liveDrag:true,
          gripInnerHtml:"<div class='grip'></div>", 
          draggingClass:"dragging", 
          minWidth:30
        }); 
        $("form").submit(function(event) {
          if($("#uname").val()==""){
            alert("请填写用户名");
            $("#uname").focus();
            return false;
          }
          if($("#tno").val()==""){
            alert("请填写教师工号");
            $("#tno").focus();
            return false;
          }
          if($("#paswd").val()==""){
            alert("请填写密码");
            $("#paswd").focus();
            return false;
          }
          
        });
        
      }); 
   </script>
   <title>添加用户</title>
 </head>
 <body>
  <div class="container">
     
 
     <div id="forms" class="mt10">
        <div class="box">
          <div class="box_border">
            <div class="box_top"><b class="pl15"><span style="align:center">添加用户</span></b></div>
            <div class="box_center">
              <form action="index.php?c=user&a=userAddAction" class="jqtransform" method="post">
               <table class="form_table pt15 pb15"  border="0" cellpadding="0" cellspacing="0">
                 <tr>
                  <td style="width:400px" class="td_right">用户名：</td>
                  <td class=""> 
                    <input type="text" name="uname" id="uname" class="input-text lh30" size="40">
                  </td>
                 
                </tr>
                <tr>
                  <td style="width:400px" class="td_right">教师工号：</td>
                  <td class=""> 
                    <input type="text" name="tno" id="tno" class="input-text lh30" size="40">
                  </td>
                 
                </tr>
                <tr>
                  <td class="td_right">密码：</td>
                  <td class=""> 
                    <input type="text" name="paswd" id="paswd" class="input-text lh30" size="40">
                  </td>
                 
                </tr>
                <tr >
                  <td class="td_right">所属角色：</td>
                  <td class="">
 
                    <span class="fl">
                      <div class="select_border"> 
                        <div class="select_containers "> 
                        <select name="role_id" class="select"> 
                        <?php foreach($data as $v) { ?>
                        
              <option value="<?php echo $v['role_id']; ?>">
                  <?php echo $v['name']; ?>
                  </option>
                <?php } ?> 
                        </select> 
                        </div> 
                      </div> 
                    </span>
                  </td>
                 </tr>
                             
                <tr>
                  <td style="width:400px" class="td_right">真实姓名：</td>
                  <td class=""> 
                    <input type="text" name="real_name" id="real_name" class="input-text lh30" size="40">
                  </td>
                </tr>
                <tr>
                  <td style="width:400px" class="td_right" id="mobile_no">手机号码：</td>
                  <td class=""> 
                    <input type="text" name="mobile_no" class="input-text lh30" size="40">
                  </td>
                </tr>
                 <tr>
                   <td class="td_right">&nbsp;</td>
                   <td class="">
                     <input type="submit" name="button" class="btn btn82 btn_save2" value="添加"> 
                   </td>
                 </tr>
               </table>
               </form>
            </div>
          </div>
        </div>
     </div>
   </div> 
 </body>
 </html>
  